package com.winit.iwm.storage.manager;

import com.winit.iwm.storage.entity.User;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by jianke.zhang on 2017/4/20.
 */
public interface UserManager {

    User findByName(String name);

    Page<User> findByPage(Example<User> example, Pageable pageable);

    List<User> find(User user);

    public List<User> findBySubDoc(User user);
}
